package com.pw.lit.service.impl;

import com.pw.lit.bean.Collection;
import com.pw.lit.bean.CollectionExample;
import com.pw.lit.mapper.CollectionMapper;
import com.pw.lit.service.CollectionService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("collectionService")
public class CollectionServiceImpl implements CollectionService {
    @Autowired
    private CollectionMapper collectionMapper;

    @Override
    public int countByExample(CollectionExample example) {
        return collectionMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CollectionExample example) {
        return collectionMapper.deleteByExample(example);
    }

    @Override
    public int insert(Collection record) {
        return collectionMapper.insert(record);
    }

    @Override
    public int insertSelective(Collection record) {
        return collectionMapper.insertSelective(record);
    }

    @Override
    public List<Collection> selectByExample(CollectionExample example) {

        return collectionMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(Collection record, CollectionExample example) {

        return collectionMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Collection record, CollectionExample example) {

        return collectionMapper.updateByExample(record,example);
    }
}